<?php
namespace App\Services\V1;//服务方:负责业务逻辑处理

use App\Http\Controllers\API\FormatController;
use App\Services\BaseService;//服务
use Illuminate\Http\Request;
class BarCodeServer extends BaseService{

    private object $User;
    private Request $Request;
    private array $Header;
    private string $Lang;
    private int $Limit;
    private int $Page;

    public function __construct(FormatController $forMat)
    {
        $UserData = $forMat->getAdmin();
        if($UserData['status'] === false){
            Message(__('fail.user_not_power'));
        }
        $this->User = $UserData['user'] ?? (object)[];
        $this->Request = $forMat->getRequest();
        $this->Header = $forMat->getHeader();
        $this->Lang = $forMat->getLang();
        $this->Limit = $forMat->getLimit();
        $this->Page = $forMat->getPage();
    }


    public function list():array{//列表

        return [];
    }

    public function add():bool{//添加

        return true;
    }

    public function edit():bool{//编辑

        return true;
    }

    public function del():bool{//删除

        return true;
    }

    public function details():void{//详情

    }
}
